package com.hhk.project_01.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class MapValueController {
    @RequestMapping(value = "mapValue")
    @ResponseBody
    public Map<String,Object> map(){
        Map<String,Object> map=new HashMap<String,Object>();
        map.put("message","这将输出一个对象");
        return map;
    }
}
